package demo.huodongbaoming.service;

import demo.huodongbaoming.dto.LoginRequest;
import demo.huodongbaoming.dto.RegisterRequest;
import demo.huodongbaoming.dto.UserDTO;
import demo.huodongbaoming.entity.User;

import java.util.List;

public interface UserService {
    UserDTO register(RegisterRequest registerRequest);
    UserDTO login(LoginRequest loginRequest);
    UserDTO getUserById(Long id);
    UserDTO getUserByUsername(String username);
    User getUserEntityById(Long id);
    User getUserEntityByUsername(String username);
    List<UserDTO> getAllUsers();
    void deleteUser(Long id);
    UserDTO updateUser(Long id, String name, String email, String phone, String studentId);
    UserDTO setAdminStatus(Long id, boolean isAdmin);
} 